<?php
require_once("include/setup.php");
require_once(CLASS_PATH.'term.class.php');
require_once(CLASS_PATH.'translation.class.php');

$translations = Translation::getRandomTranslations(array(
	'max' => 1
));

$term = $translations[0]->term;
$translations = $term->getTranslations();

$v = new JapwordView();
$v->assign('term', $term);
$v->assign('translations', $translations);
$v->display('random_word_from_jp.html');
?>